import re,time
class CommBiz(object):
  # 从字符里面提取纯数字
  def getNumber(this,txt):
    pattern = r'\d+\.?\d*'
    match_obj = re.findall(pattern, txt)
    if len(match_obj) > 0:
      return match_obj[0]
    return ''
  def getIndexStr(this,index,ll):
    ss = str(index)
    for nn in range(0,ll):
      if len(ss) >= ll:
        break
      ss = '0' + ss
    return ss
  def sleep(this,sec):
    time.sleep(sec / 1000)
# 添加\t文本
def td():
  return '\t'